import java.util.Random;

public class v1 {
    public static void main(String[] args){
        int m,n;
        for (int i = 0; i < 50; i++) {
            n=generateOperand();
            m=generateOperand();
            System.out.println ((i+1)+": "+n+" + "+m+" = ");
        }
        for (int i = 0; i < 50; i++) {
            n=generateOperand();
            m=generateOperand();
            System.out.println ((i+1)+": "+n+" - "+m+" = ");

        }
    }
    private static int generateOperand(){
        //生成100以内的整数
        Random random = new Random();
        return random.nextInt(101);
    }
}